Controlling vaccination rates in communities